package com.wxl.common.serialport

class CmdCode {

    companion object {


        /**===================================采集器start==================================**/


        /**
         * 采集器升级被中断,采集器被拔出
         */
        const val CJQ_UP_BLOCK_ASK = "2313A0FF31AA0000000001000000000000007"//采集器升级中断

        /**
         * 读取采集器信息
         */
        const val CJQ_READ_INFO_CMD = "2307FFA03001"

        /**
         * 读取采集器信息返回码前段
         */
        const val CJQ_READ_INFO_ASK = "2312A0FF3101"


        /**
         * 进入采集器指令
         */
        const val CJQ_IN_UP_MODE_CMD = "230AFFC041FF010000"

        /**
         * 进入采集器升级模式成功前段
         */
        const val CJQ_IN_UP_MODE_OK_ASK = "230AC0FF81FF01"

        /**
         * 进入采集器升级模式错误
         */
        const val CJQ_IN_UP_MODE_E_ASK = "230AC0FF80FF"


        /**
         * 退出采集器返回码失败
         */
        const val CJQ_SIGN_EXIT_E_ASK = "2307C0FF80"


        /**
         * 退出采集器返回码成功
         */
        const val CJQ_SIGN_EXIT_OK_ASK = "2308C0FF81"


        /**
         * 退出采集器命令
         */
        const val CJQ_SIGN_EXIT_CMD = "230AFFC041FF02"

        /**
         * 发送地址信息前段命令
         */
        const val CJQ_SEND_ADDR_CMD = "230DFFC041FE"

        /**
         * 发送地址信息右边部分命令
         */
        const val CJQ_SEND_ADDR_R_CMD = "0800"

        /**
         * 接收采集器地址返回成功
         */
        const val CJQ_SEND_ADDR_OK_ASK = "2307C0FF81"

        /**
         * 接收采集器地址返回失败
         */
        const val CJQ_SEND_ADDR_E_ASK = "2307C0FF80"

        /**
         * 接收采集器地址返回跳过
         */
        const val CJQ_SEND_ADDR_JUMP_ASK = "2307C0FF82"

        /**
         * 写入数据信息命令
         */
        const val CJQ_WRITE_DATA_CMD = "2308FFC041FD01"

        /**
         * 写入数据信息成功
         */
        const val CJQ_WRITE_DATA_OK_ASK = "2307C0FF81"

        /**
        * 写入数据信息失败
        */
        const val CJQ_WRITE_DATA_E_ASK = "2307C0FF80"

        /**
         * 设置采集器厂家代码
         */
        const val CJQ_SET_CODE_CMD = "230CFFA0310B"

        /**
         * 设置采集器厂家代码成功
         */
        const val CJQ_SET_CODE_OK_ASK = "2308A0FF310B81"

        /**
         * 设置采集器厂家代码失败
         */
        const val CJQ_SET_CODE_E_ASK = "2308A0FF310B80"


        /**===================================采集器end==================================**/


        /**===================================雷管start==================================**/

        /**
         * 扫描采集器雷管信息成功
         */
        const val LEI_GUAN_CJQ_INFO_OK_ASK = "2315A0FF3102"

        /**
         * 扫描采集器雷管信息失败
         */
        const val LEI_GUAN_CJQ_INFO_E_ASK = "2315A0FF310580"

        /**
         * 导入采集器雷管数据
         */
        const val LEI_GUAN_CJQ_INFO_CMD = "2309FFA03002"


        /**===================================雷管end==================================**/


        /**===================================控制板start==================================**/

        /**
         * 清除控制板状态
         */
        const val KZB_CLEAR_STATE_CMD = "2307FFA031CC"

        /**
         * 清除控制板数据成功
         */
        const val KZB_CLEAR_STATE_OK_ASK = "2308A0FF31CC81"

        /**
         * 清除控制板数据失败
         */
        const val KZB_CLEAR_STATE_E_ASK = "2308A0FF31CC80"

        /**
         * 在线扫描控制板雷管信息
         */
        const val KZB_SCAN_LG_CMD = "2307FFA03105"


        /**
         * 在线扫描雷管信息成功
         */
        const val KZB_SCAN_LG_OK_ASK = "2308A0FF310581"


        /**
         * 在线扫描雷管信息失败
         */
        const val KZB_SCAN_LG_E_ASK = "2308A0FF310580"

        /**
         * 读取控制板雷管数据命令
         */
        const val KZB_READ_LG_INFO_CMD = "2309FFA03004"

        /**
         * 读取控制板雷管数据信息返回
         */
        const val KZB_READ_LG_INFO_ASK = "231CA0FF3104"

        /**
         * 循环查询控制板雷管信息
         */
        const val KZB_QUERY_LG_INFO_CMD = "2307FFA030AA"

        /**
         * 循环查询返回成功
         */
        const val KZB_QUERY_LG_INFO_OK_ASK = "2313A0FF31AA"

        /**===================================控制板end==================================**/


        /**===================================组网start==================================**/
        /**
         * 延时方案
         */
        const val DELAY_PLAN_CMD = "231CFFA03103"


        /**
         * 延时方案返回成功
         */
        const val DELAY_PLAN_OK_ASK = "2308A0FF310381"


        /**
         * 延时方案返回失败
         */
        const val DELAY_PLAN_E_ASK = "2308A0FF310380"


        /**
         * 写入延时
         */
        const val DELAY_INPUT_CMD = "2308FFA03107"

        /**
         * 写入延时成功
         */
        const val DELAY_INPUT_OK_ASK = "2308A0FF310781"


        /**
         * 写入延时失败
         */
        const val DELAY_INPUT_E_ASK = "2308A0FF310780"




        /**===================================组网end==================================**/


        /**===================================爆破start==================================**/

        /**
         * 授权
         */
        const val AUTH_CMD = "2307FFA03106"

        /**
         * 授权成功
         */
        const val AUTH_OK_ASK = "2308A0FF310681"


        /**
         * 授权失败
         */
        const val AUTH_E_ASK = "2308A0FF310680"


        /**
         * 充电
         */
        const val BLAST_CHARGE_CMD = "2307FFA03108"

        /**
         * 充电成功
         */
        const val BLAST_CHARGE_OK_ASK = "2308A0FF310881"

        /**
         * 充电失败
         */
        const val BLAST_CHARGE_E_ASK = "2308A0FF310880"

        /**
         * 爆破
         */
        const val BLAST_CMD = "2308FFA03109"

        /**
         * 爆破成功
         */
        const val BLAST_OK_ASK = "2308A0FF310981"

        /**
         * 爆破失败
         */
        const val BLAST_E_ASK = "2308A0FF310980"


        /**
         * 关电
         */
        const val CLOSE_ELECTRIC_CMD = "2307FFA0310A"


        /**
         * 关电成功
         */
        const val CLOSE_ELECTRIC_OK_ASK = "2308A0FF310A81"


        /**
         * 关电失败
         */
        const val CLOSE_ELECTRIC_E_ASK = "2308A0FF310A80"

        /**
         * 设置电压
         */
        const val SETTING_VOLTAGE_CMD = "2310FFA031C8"

        /**
         * 设置电压成功
         */
        const val SETTING_VOLTAGE_OK_ASK = "2308A0FF31C881"

        /**
         * 设置电压失败
         */
        const val SETTING_VOLTAGE_E_ASK = "2308A0FF31C880"


        /**===================================爆破end==================================**/
    }

}